import { createApp } from 'vue'
import { MotionPlugin } from '@vueuse/motion'
import App from './App.vue'
import router from './router'
import i18n from './i18n'
import './index.css' // 如果使用 tailwin
import Particles from '@tsparticles/vue3'
import { Engine } from '@tsparticles/engine'
import { loadFull } from "tsparticles"
// 注册插件
const app = createApp(App)
app.use(router)
app.use(i18n)
app.use(MotionPlugin)

async function particlesInit(engine: Engine) {
    await loadFull(engine)
}

app.use(Particles, {
    init: particlesInit
})

app.mount('#app')
